<div ng-include="sys_html('common/_header')"></div>
<style>
	.member-cart-page .fui-radio{
		position: static;
	}
</style>
<div class='fui-page  fui-page-current member-cart-page'>
    <div class="fui-header">
	<div class="fui-header-left" ng-click="goback()">
	    <a class="back"></a>
	</div>
	<div class="title">我的关注</div> 
	<div class="fui-header-right" >
		<a class="btn-edit" ng-click="toogle(pagedata.show_edit)">{{ifelse(pagedata.show_edit,'完成','编辑')}}</a>
	</div>
    </div>

    <div class='fui-content ' >
		<div class='content-empty' ng-if="pagedata.list.length<1" id="no_goods" >
			 <i class='icon jinyunicon icon-xiai'></i><br/>您还没有关注任何商品，何不现在就去逛逛~<br/><a href="javascript:;" ng-click="access_json('goods.index/')" class='btn btn-default-o external'>去逛逛吧~</a>
		</div>
		  <div class="fui-list-group container" style="margin-top: 0">
			 <div ng-repeat="g in pagedata.list" class="fui-list goods-item align-start" >
				<div class="fui-list-media editmode" ng-show="pagedata.show_edit">
				   <input type="checkbox" name="checkbox" ng-checked="pagedata.del.indexOf(';'+g.id+';')>=0" ng-click="duoxuans(g.id,pagedata,'del')" class="fui-radio fui-radio-danger edit-item del_favorite"/>
				</div>
				<div class="fui-list-media image-media" style="margin-left: 0">
					<a ng-click="access_json('/goods.detail//id='+g.goodsid)" >
					<img ng-src="{{tomedia(g.image) || '../core/resource/images/nopic.jpg'}}" class="round">
					</a>
				</div>
				<div class="fui-list-inner">
					<a href="javascript:;" ng-click="access_json('/goods.detail//id='+g.goodsid)" data-nocache="true">
					<div class="subtitle">
					  {{g.title}}
					</div>
					</a>
					<div class="text" style="margin-bottom: .3rem;font-size: .75rem;"><span class="text-danger">￥{{g.price}}</span> <span ng-show="g.marketprice>0" class='oldprice'>￥{{g.marketprice}}</span></div>

				</div>
			<div class="favoritecover" style="width: 90%;position: absolute;top: 0;;right: 0;height: 100%;display: none"></div>
		</div>
		  </div>
		  <div id="loading" class='infinite-loading'><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>
		</div>
		<div class="fui-footer editmode" ng-show="pagedata.show_edit">
		<div class="fui-list noclick">
			<div class="fui-list-media">
			<label class="checkbox-inline editcheckall"><input type="checkbox" name="checkbox" onclick="var ck = this.checked;$(':checkbox').each(function(){if(this.checked != ck){$(this).click();}});" class="fui-radio fui-radio-danger " />&nbsp;全选</label>
			</div>
			<div class="fui-list-inner"></div>

			<div class='fui-list-angle'>
			<div class="btn  btn-danger btn-delete  disabled" ng-click="post({},'del','del='+pagedata.del)">删除</div>
			</div>
		</div>
    </div>
 
</div>

<div ng-include="sys_html('common/_footer')"></div>
<script>
scope.tool.get_list('jy_weishop/member.favorite/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_weishop/member.favorite/getlist/');
}
</script>